<template>
    <div>
        <h1>
            <!-- 具名插槽 -->
            <slot name="title"></slot>
        </h1>

        <slot></slot>

        <p>
            <slot name="body">123213</slot>
        </p>
    </div>
</template>

<script>
export default {
    name: 'Comp1',
};
</script>
